<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"

      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
    
      >
    <h:head>
        <title>Facelet Title</title>

    </h:head>
    <h:body>
        <ui:composition template="../Master/masters.xhtml">
            <ui:define name="content">

                <div class="templatemo_h_line">
                </div>
                <h1>Submit Complaints</h1>
                <div style="height: 15px"></div>
                <table cellspacing="8px">
                    <tr>
                        <td class="labelSubmit">Complaints Title</td>
                        <td valign="top"><h:inputText styleClass="mediumfield" value="#{submitComplaint.title}"></h:inputText></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td class="labelSubmit" valign="top">Complaints Content</td>
                        <td><p:editor id="editor"  value="#{submitComplaint.content}"/></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td class="labelSubmit">Complaints Category </td>
                        <td valign="top"><h:selectOneMenu value="#{submitComplaint.categorySelected}">

                                <f:selectItems value="#{submitComplaint.categorys}"></f:selectItems>
                            </h:selectOneMenu></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td></td>
                    </tr>
                    <tr>
                        <td></td>
                        <td><h:commandButton action="#{submitComplaint.submitComplaints()}" value="Submit Complaints" styleClass="buttonContent1"  ></h:commandButton></td>
                    </tr>
                </table>
         
            </ui:define>
        </ui:composition>
    </h:body>
</html>

